package com.bole.feign;


import com.bole.dto.car.TbCarInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface CarInfoFeign {

    @GetMapping("/carInfo/getCarInFoList")
    List<TbCarInfoDto> getCarInFoList();

    @PostMapping("/carInfo/saveCarInfo")
    void saveCarInfo(@RequestBody TbCarInfoDto carInFoDo);

    @PostMapping("/carInfo/toUpdate")
     TbCarInfoDto toUpdate(@RequestParam("id") Long id);

    @PostMapping("/carInfo/updateCarInFo")
    void updateContentCateInfo(@RequestBody TbCarInfoDto carInFoDo);


    @PostMapping("/carInfo/deleteBatch")
    void deleteBatch(@RequestParam("idss") List<Long> idss);

    @PostMapping("/carInfo/getCarInfoById")
    TbCarInfoDto getCarInfoById(@RequestParam("carId")Long carId);
}
